package com.itheima.xmy;

public class AddTest extends MathTest{
    public AddTest(int a, int b) {
        super(a, b);
    }

    @Override
    public int getA() {
        return super.getA();
    }

    @Override
    public void setA(int a) {
        super.setA(a);
    }

    @Override
    public int getB() {
        return super.getB();
    }

    @Override
    public void setB(int b) {
        super.setB(b);
    }

    @Override
    public int calculator() {
        int sum  =getA()+getB();
        return super.calculator();
    }

    @Override
    String getQuestion() {
        String num = super.getA()+"+"+super.getB()+"=?";
        return num;
    }

    // 加法


}
